﻿FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /app

RUN  ls
COPY . /app

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone

EXPOSE 80/tcp
EXPOSE 443/tcp
VOLUME [ "./app/Logs" ]
VOLUME [ "./app/Modules" ]
VOLUME [ "./app/file-blob-storing" ]

# 设置环境变量
#ENV ASPNETCORE_ENVIRONMENT=Staging

ENTRYPOINT ["dotnet", "ServiceA.dll"]